home *** CD-ROM | disk | FTP | other *** search
- Path: news.rain.org!usenet
- From: tpaul <tpaul@rain.org>
- Newsgroups: comp.lang.c
- Subject: division problem
- Date: Fri, 26 Jan 1996 17:18:47 -0800
- Organization: RAIN Public Access Internet (805) 967-RAIN
- Message-ID: <31097D77.11AA@rain.org>
- NNTP-Posting-Host: @port00.rain.org
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b5 (Win95; I)
-
- Can anyone show me why this does not work? I am a beginner.
-
- #include <stdio.h>
-
- main ()
- {
- int fahrenheit, celsius;
-
- printf("Fahrenheit temperature =?";
- scanf("%d",fahrenheit);
- celsius = 5/9*(fahrenheit-32);
- printf("Fahrenheit = %d, Celsius = %d", fahrenheit, celsius;
- }
-
-
- Thanks in advance.
-